2005-12-26 Matthias Clasen <mclasen@redhat.com>
* gtk/gtktextbtree.c: Use the slice allocator for some other small
auxiliary structures as well.
2005-12-26 Matthias Clasen <mclasen@redhat.com>
+ * gtk/gtktextbtree.c: Use the slice allocator for some other small
+ auxiliary structures as well.
+
* gtk/gtkimcontext.c (gtk_im_context_filter_keypress): Clarify
docs. (#324996)
2005-12-26 Matthias Clasen <mclasen@redhat.com>
+ * gtk/gtktextbtree.c: Use the slice allocator for some other small
+ auxiliary structures as well.
+
* gtk/gtkimcontext.c (gtk_im_context_filter_keypress): Clarify
docs. (#324996)
iter_stack_new (void)
{
IterStack *stack;
- stack = g_new (IterStack, 1);
+ stack = g_slice_new (IterStack);
stack->iters = NULL;
stack->count = 0;
stack->alloced = 0;
iter_stack_free (IterStack *stack)
{
g_free (stack->iters);
- g_free (stack);
+ g_slice_free (IterStack, stack);
}
static void